extends "../dafeng-1/dafeng-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("自身舰载机阵亡时，对其当前目标及周围(十字范围)造成[目标血上限25%]的航空技能伤害", "神风")
var p2 = 1
func onSummDeath(atkInfo):
	.onSummDeath(atkInfo)
	shenFeng(atkInfo)

func shenFeng(atkInfo):
	var cha = atkInfo.hitCha.aiCha
	for i in cha.getNearChas(cha.cell, false, cha):
		var dmg = getAirDmg(i.att.maxHp*0.25)
		if i.type == sys.CharaClass.BOSS:
			dmg *= 0.3
		azurHurtChara(i, dmg, sys.HurtType.WEAPON, sys.AtkType.SKILL, "神风", false, p2)